home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
unixlib.lha
/
unix
/
src
/
time.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-05
|
214b
|
15 lines
#include "amiga.h"
#include "timeconvert.h"
time_t time(time_t * clock)
{
struct timeval now;
if (_gettime(&now) < 0)
return -1;
if (clock)
*clock = now.tv_secs;
return (time_t) now.tv_secs;
}